import request from '@/utils/request'

// 查询报告模版列表
export function listMarketReportTemplate(query) {
  return request({
    url: '/report/marketReportTemplate/list',
    method: 'get',
    params: query
  })
}

// 查询报告模版详细
export function getMarketReportTemplate(id) {
  return request({
    url: '/report/marketReportTemplate/' + id,
    method: 'get'
  })
}

// 保存报告模版
export function saveMarketReportTemplate(data) {
  return request({
    url: '/report/marketReportTemplate/save',
    method: 'post',
    data: data
  })
}

// 删除报告模版
export function delMarketReportTemplate(id) {
  return request({
    url: '/report/marketReportTemplate/' + id,
    method: 'delete'
  })
}

// 导出报告模版
export function exportMarketReportTemplate(query) {
  return request({
    url: '/report/marketReportTemplate/export',
    method: 'get',
    params: query
  })
}
